package com.woniuxy02;

/**
 * @author 作者
 * @create 2025-05-29 9:46
 */
public class Student {
    String name;
    int age;
    String gender;


    public Student(){
        name="zs";
        System.out.println("无参构造");
    }
    public Student(String name, int age,String gender){
        System.out.println("带参构造");
        this.name=name;
        this.age=age;
        this.gender=gender;
    }

    public String getInfo(){
        return "Name: " + name+ " ,Age: " + age;
    }

    public void show(){
        String info = this.getInfo();
        System.out.println(info);
        System.out.println(getInfo());
    }
}
